home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 4 / FM Towns Free Software Collection 4 - Disc 1.iso / t_os / wstype / source / window.h < prev    next >
C/C++ Source or Header  |  1991-10-18  |  1KB  |  47 lines

  1. /***   [window.h]
  2. *
  3. *    For GNU C Compiler (GCC)
  4. *
  5. ***/
  6.  
  7. #if !defined(_RECT_DEFINED)
  8. struct RECT {
  9.     short    x1;
  10.     short    y1;
  11.     short    x2;
  12.     short    y2;
  13. };
  14. #define _RECT_DEFINED
  15. #endif
  16.  
  17. /* OpenWindow用 構造体 */
  18. struct opnwin_t {
  19.     const char    *title;        /* 題名 */
  20.     int        x1;            /* 左上x座標 */
  21.     int        y1;            /* 左上y座標 */
  22.     int        x2;            /* 右下x座標 */
  23.     int        y2;            /* 右下y座標 */
  24.     char    canb;        /* キャンセル・ボタン */
  25.     int        nopt;        /* オプションの数 */
  26.     const int    *wopt;    /* 各オプションの幅 */
  27.     char    expb;        /* 伸縮ボタン */
  28.     char    shdw;        /* 影 */
  29.     char    ord;
  30. };
  31. struct sb_t {
  32.     int    tl;        /* total line */
  33.     int    lpp;    /* lines per page */
  34.     int    blen;    /* bar length */
  35.     int    bml;    /* block min length */
  36. };
  37.  
  38. void    drawWindow(struct opnwin_t *);
  39. void    DrawButton(int, int, int, int, int);
  40. void    DrawScrollbar(int, int, int, int);
  41. int        Button(int, int, int, int);
  42. int        dragWindow(int, int, struct RECT *, struct RECT *, int, int);
  43. void    Xpage(int, int, int);
  44. void    afterImage(struct RECT *, struct RECT *);
  45. void    SCRB_bar(struct sb_t *, int, int *);
  46. void    SCRB_page(struct sb_t *, int, int *, int *);
  47.